package com.me.flow.dto;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum FlowCodeEnum {

    SUCCESS("000000", "成功", "success"),

    SYSTEM_ERROR("000099", "系统异常", "fail"),

    FAIL("000001", "失败", "fail"),

    WORKFLOWSTARTERROR("000002", "工作流发起失败", "fail"),

    QUERYDBERROR("000003", "读取工作流待办列表失败", "fail"),

    DELEGATEERROR("000004", "委派失败", "fail"),

    CLAIMTASKERROR("000005", "签收失败", "fail"),

    READYHANDLEERROR("000006", "请求待办失败", "fail"),

    CANCELERROR("000007", "作废失败", "fail"),

    QUERYHANDLEERROR("000008", "读取工作流已办列表失败", "fail"),

    VIEWHANDLEERROR("000009", "查询已办任务失败", "fail"),

    WORKFLOWSTARTPARAMERROR("000010", "工作流参数错误", "fail"),

    HANDLEERROR("000011", "办理失败", "fail"),

    QUERY_WORKFLOW_LOG_ERROR("000012", "查询审批日志出错", "fail"),

    SAVE_WORKFLOW_LOG_ERROR("000013", "保存审批日志出错", "fail"),

    FINISH_WORKFLOW_ERROR("000014", "结束流程失败", "fail"),

    QUERY_WORKFLOW_ERROR("000015", "未找到相应流程", "fail"),

    UPDATE_TASK_BEGIN_TIME_WORKFLOW_ERROR("000016", "更新工作流任务时间失败", "fail"),

    UPDATE_WORKFLOW_LOG_ERROR("000017", "更新审批日志出错", "fail"),

    UPDATE_WORKFLOW_STATUS_ERROR("000018", "更新流程状态出错", "fail"),

    WORKFLOW_END_ERROR("000019", "工作流已结束", "fail"),

    TASK_REPEAT_ASSIGN_ERROR("000020", "任务重复认领", "fail"),

    VALIDATE_SGIN_ERROR("000097", "参数验证签名失败", "fail"),

    REQUEST_PARAM_ERROR("000098", "请求参数错误", "fail"),

    UPDATE_PRIORITY_FLAG_ERROR("000099", "更新优先级异常", "fail"),

    ;

    private String code;
    private String desc;
    private String status;
}